<?php

class Core_Template_Html_Grid_Cell_Boolean extends Soul_Template_Html_Grid_Cell_Label {

	public function __construct(){
		parent::__construct();
		$this->addClass('boolean');
	}

	public function renderChildren() {
		$text = $this->getFormatText();
		$text = empty($text)? $GLOBALS[RC]->getLanguage()->__('system.status.no'): $GLOBALS[RC]->getLanguage()->__('system.status.yes');
		return '<span>'.$text.'</span>';
	}
}